﻿namespace Pottery.Module.Infrastructure.Models
{
    using System.Runtime.Serialization;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    [DataContract]
    public class Size
    {
        #region Constructors

        public Size() { }

        public Size(double length, double width, double height)
        {
            Length = length;
            Width = width;
            Height = height;
        }

        #endregion

        #region Properties

        [DataMember(Order = 1)]
        public double Length
        {
            get { return m_Length; }
            set { m_Length = value; }
        }

        [DataMember(Order = 2)]
        public double Width
        {
            get { return m_Width; }
            set { m_Width = value; }
        }

        [DataMember(Order = 3)]
        public double Height
        {
            get { return m_Height; }
            set { m_Height = value; }
        }

        #endregion

        #region Fields

        private double m_Length = default(double);
        private double m_Width = default(double);
        private double m_Height = default(double);

        #endregion
    }
}
